<div class="login-content">
	<div class="left">
		<div class="box-rounded login">
			<div class="box-rounded-header"></div>
			<div class="box-rounded-content">
				<?php echo Form::open(array ('action' => 'login', 'class' => 'form-login')) ?>
				<div class="row-form">
					<label>Enter your username and password below then press the 'Log In' button</label>
					<label class="mt10">You must complete all fields marked as *</label>
				</div>
				<div class="row-form">
					<div class="label"><?php echo Form::label('Username', 'username') ?></div>
					<div class="content">
						<?php echo Form::input(array(
							'name' => 'username',
							'class' => 'required'
						)); ?>
						<?php echo Form::label('*', '', array('class' => 'inline')) ?>
					</div>
				</div>
				<div class="row-form">
					<div class="label"><?php echo Form::label('Password', 'password') ?></div>
					<div class="content">
						<?php echo Form::password(array(
							'name' => 'password',
							'class' => 'required'
						)) ?>
						<?php echo Form::label('*', '', array('class' => 'inline')) ?>
					</div>
				</div>
				<div class="row-form">
					<div class="label"></div>
					<div class="content fr">
						<?php echo Html::anchor('forgot_password', 'Forgotten the password?', array('class' => 'bold underline')) ?>
					</div>
				</div>
				<div class="row-form">
					<div class="label"></div>
					<div class="content fr">
						<?php echo Form::button(array('class' => 'submit-login')) ?>
					</div>
				</div>
				<div class="row-form">
					<div class="label"></div>
					<div class="content fr">
						<?php echo Html::anchor('register', 'Not registered?', array('class' => 'underline')) ?>
					</div>
				</div>
				<?php echo Form::close() ?>
			</div>
			<div class="box-rounded-footer"></div>
		</div>
	</div>
	<div class="right">
		<div class="box-rounded register">
			<div class="box-rounded-header"></div>
			<div class="box-rounded-content">
				<?php echo Form::open(array ('action' => 'user/register', 'class' => 'form-register')) ?>
				<div class="row-fluid">
					<label>Leave us your details and enjoy all the benefits that come with being a subscriber</label>
					<label class="mt10">You must complete all fields marked as *</label>
					<div class="row-form mt10 mb10">
						<div class="label"><label class="label-form">Title</label></div>
						<div class="content">
							<select name="gender">
								<?php foreach ( $genders as $gender ): ?>
									<option value="<?php echo $gender['id'] ?>"><?php echo $gender['name'] ?></option>
								<?php endforeach; ?>
							</select>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('First name') ?>
						</div>
						<div class="content">
							<?php echo Form::input(array(
								'name' => 'first_name',
								'class' => 'required',
								'value' => 'LSP'
							)) ?>
							 <label class="inline">*</label>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('Last name') ?>
						</div>
						<div class="content">
							<?php echo Form::input(array(
								'name' => 'last_name',
								'class' => 'required',
								'value' => 'User'
							)) ?>
							 <label class="inline">*</label>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('Email') ?>
						</div>
						<div class="content">
							<?php echo Form::input(array(
								'name' => 'email',
								'class' => 'required',
								'value' => 'lsp.user@gmail.com'
							)) ?>
							 <label class="inline">*</label>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('Password') ?>
						</div>
						<div class="content">
							<?php echo Form::password(array(
								'name' => 'password',
								'value' => 'admins'
							)) ?>
							 <label class="inline">*</label>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('Confirm Password') ?>
						</div>
						<div class="content">
							<?php echo Form::password(array(
								'name' => 'confirm_password',
								'value' => 'admins'
							)) ?>
							 <label class="inline">*</label>
						</div>
					</div>
					<div class="row-form">
						<div class="label">
							<?php echo Form::label('Account Type') ?>
						</div>
						<div class="content">
							<select name="type">
								<?php foreach ( Config::get('account_types') as $type => $title ): ?>
									<option value="<?php echo $type ?>"><?php echo $title ?></option>
								<?php endforeach; ?>
							</select>
						</div>
					</div>
					<p class="clearfix mt10">Explanation about this account type. Explanation about this account type. Explanation about this account type.</p>
					<div class="row-form none">
						<div class="content label full">
							<?php echo Form::label('Security Question') ?>
						</div>
					</div>
					<div class="row-form">
						<div class="content full">
							<select name="security_question">
								<?php foreach ( $security_questions as $question ): ?>
									<option value="<?php echo $question['id'] ?>"><?php echo $question['name'] ?></option>
								<?php endforeach; ?>
							</select>
						</div>
					</div>
					<div class="row-form none">
						<div class="content label full">
							<?php echo Form::label('Security Answer') ?>
						</div>
					</div>
					<div class="row-form">
						<div class="content full">
							<?php echo Form::input(array(
								'name' => 'security_answer',
								'class' => 'large',
								'value' => 'mother of name'
							)) ?>
							 <label class="inline fr">*</label>
						</div>
					</div>
					<div class="row-form none">
						<div class="content label full">
							<?php echo Form::label('Newsletter') ?>
						</div>
					</div>
					<div class="row-form">
						<div class="content full">
							<label>Do you wish to be kept up to date with news and useful tips? Please note that your privace is important to us and your detail will not be passed to a  third party companies.</label>
						</div>
					</div>
					<div class="row-form mt10">
						<div class="content full">
							<label class="inline mr10 bold">Yes <input type="radio" name="has_newsletter" value="1"></label>
							<label class="inline bold">No <input type="radio"  name="has_newsletter" value="0" checked></label>
						</div>
					</div>
					<div class="row-form">
						<div class="content label full">
							<?php echo Form::label('Accept Terms And Conditions') ?>
						</div>
					</div>
					<div class="row-form">
						<div class="content full">
							<label class="inline">
								<?php $ele_id = uniqid(); echo Form::label(
									Form::hidden(array(
										'name' => 'accept',
										'value' => 0,
										'id' => $ele_id
									)).
									Form::checkbox(array(
										'name' => 's',
										'onclick' => '(function($, _this){ $(\'#'.$ele_id.'\').val($(_this).is(\':checked\')?1:0) })(jQuery, this);'
									))
								) ?>
								Clicking "Make this booking" means you agree to the cSeeker's <a href="<?php echo Uri::create('cancellation_policy') ?>" title="cancellation policy">cancellation policy</a> and our <a href="<?php echo Uri::create('terms_and_conditions') ?>" title="Terms and Conditions">Terms and Conditions</a>
							</label>
						</div>
					</div>
					<div class="row-form">
						<div class="content full">
							<?php echo Form::button(array('class' => 'submit-register')) ?>
						</div>
					</div>
				</div>
			</div>
			<?php echo Form::close() ?>
			<div class="box-rounded-footer"></div>
		</div>
	</div>
</div>

<div class="ads-content">
	<?php echo Asset::img('files/ads.jpg') ?>
</div>